import time
from selenium import webdriver
from selenium.webdriver.common.by import By
class AiDou:
    def __init__(self):
        self.driver = webdriver.Chrome()
        self.driver.get('https://www.baidu.com')
    def ikun(self):
        self.driver.find_element(By.ID,'kw').send_keys('蔡徐坤')
        self.driver.find_element(By.ID,'su').click()
        time.sleep(2)
    def deeplove(self):
        self.driver.find_element(By.XPATH,'/html/body/div[3]/div[4]/div[1]/div[3]/div[1]/div[1]/div/div/div/div/div[2]/div/a/div/p/span/span').click()
        exit()
cxk = AiDou()
cxk.ikun()
cxk.deeplove()

